# !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
 -------------------------------------------------
    File Name:     global_exception_handler.py
    Description:   全局异常处理器
 -------------------------------------------------
 """

import sys


def global_exception_handler(exc_type, exc_value, exc_traceback):
    print("global exception handler")
    print("异常类型：", exc_type)
    print("异常信息：", exc_value)


sys.excepthook = global_exception_handler
